﻿using System;
using System.Collections.Generic;
using System.Text;
using Nissen_Dao;
using Nissen_Model;

namespace Nissen_Manage.Forms
{
	public class MarkableQuestionService
	{
		public void SaveMarkableQuestions(IList<MarkableQuestion> markableQuestions, string SubjectCourseID, string SubjectCoursePage)
		{
			MarkableQuestionDao markableQuestionDao = new MarkableQuestionDao();

			markableQuestionDao.SaveOrUpdateMarkableQuestions(markableQuestions, SubjectCourseID, SubjectCoursePage);
		}

		public IList<MarkableQuestion> GetMarkableQuestions(string subjectCourseTestId, string pageNum)
		{
			MarkableQuestionDao markableQuestionDao = new MarkableQuestionDao();

			return markableQuestionDao.GetMarkableQuestions(subjectCourseTestId, pageNum);
		}
	}
}
